/**
 * 控制 权限 token
 * @returns
 */
export const parse = (str = window.location.search) => {
  const reg = /([^?&=]+)=([^&]+)/g; // 分组捕获 两个子组
  const params = {};
  str.replace(reg, (_, k, v) => (params[k] = v));
  return params;
};
